//
//  FindTableCell.m
//  TenThousand
//
//  Created by 我的 on 16/6/30.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "FindTableCell.h"

@implementation FindTableCell


#define host @"http://www.wanyuanfu.net"

//http://www.wanyuanfu.net

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)drawRect:(CGRect)rect{
    
    _backView.layer.cornerRadius = 5;
    _backView.layer.masksToBounds = YES;
    
    _iconImageView.layer.cornerRadius = 5;
    _iconImageView.layer.masksToBounds = YES;
}



- (void)setDataWithModel:(GetNewListModel *)model{
    _titleLable.text = model.NewTitel;
    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",host,model.NewImage]] placeholderImage:[UIImage imageNamed:@"SHOUYE_02"]];
}

@end
